import request from '@/utils/myRequest'

export function getMaterials(params) {
  return request({
    url: '/admin/xy/upload/list',
    method: 'get',
    params
  })
}

export function delMaterial(params) {
  return request({
    url: '/admin/xy/upload/del',
    method: 'get',
    params
  })
}

export function updateMaterial(data) {
  return request({
    url: '/admin/xy/upload/updateTitle',
    method: 'post',
    data
  })
}

export function uploadMaterial(data) {
  return request({
    url: '/admin/xy/upload/uploadImg',
    method: 'post',
    data
  })
}
